from selenium import webdriver
import os
chromeDriver = "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe"
os.environ["webdriver.chrome.driver"] = chromeDriver
browser = webdriver.Chrome(chromeDriver)
url = "http://www.baidu.com"
browser.get(url)
browser.find_element_by_id("kw").send_keys("python")
browser.find_element_by_id("su").click()
#browser.quit()